import request from '@/utils/request'

// 查询订单食物关系表列表
export function listRelation(query) {
  return request({
    url: '/teaching/relation/list',
    method: 'get',
    params: query
  })
}

// 查询订单食物关系表详细
export function getRelation(oId) {
  return request({
    url: '/teaching/relation/' + oId,
    method: 'get'
  })
}

// 新增订单食物关系表
export function addRelation(data) {
  return request({
    url: '/teaching/relation',
    method: 'post',
    data: data
  })
}

// 修改订单食物关系表
export function updateRelation(data) {
  return request({
    url: '/teaching/relation',
    method: 'put',
    data: data
  })
}

// 删除订单食物关系表
export function delRelation(oId) {
  return request({
    url: '/teaching/relation/' + oId,
    method: 'delete'
  })
}
